<div class="row">
	<div class="col-md-3">
		<a href="<?php echo site_url('front') ?>"><img id="logo" src="<?php echo base_url();?>public/img/logo.jpg"></a>
	</div>
	<div class="col-md-6">
		<p id="phone"><i class="glyphicon glyphicon-earphone "></i>400-123456789<i class="glyphicon glyphicon-envelope"></i>shop@googjobs</p>
		<div class="input-group">
	      <input type="text" class="form-control" placeholder="请输入商品名称或店铺名称...">
	      <span class="input-group-btn">
	        <button class="btn btn-danger" type="button">搜索</button>
	      </span>
	    </div>
	</div>
	<div class="col-md-3 ">
		<div id="head_right"><?php if($this->session->userdata('user_is_login')){
			echo '欢迎回来，'.$this->session->userdata('username'); ?>|<a href="<?=site_url('user/logout') ?>">退出</a>
			<?php	
		}else{
			?>
			<a href="<?=site_url('user/login') ?>">请登录</a>|<a href="<?=site_url('user/regedit') ?>">欢迎注册</a>
			<?php
			} ?></div>
		<a href="<?php echo site_url("shoping/shopcart/") ?>" id="sp" class="pull-right"><div id="shopcart">
		<?php $CI=&get_instance();
			$CI->load->model('User_cart_model');
		 ?>
		 <i class="glyphicon glyphicon-shopping-cart"></i>我的购物车<span><?php echo $CI->User_cart_model->cart_count($this->session->userdata('user_id')); ?></span></a>
		</div>
	</div>
</div>